//
//  CheckItemCell.m
//  MyProject
//
//  Created by Pei on 16/7/8.
//  Copyright © 2016年 Xiaobo Pei. All rights reserved.
//

#import "CheckItemCell.h"

@implementation CheckItemCell
@synthesize deleteBtn;


- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        self.backgroundColor = kWhiteColor;
        
        deleteBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        [deleteBtn setBackgroundImage:[UIImage imageNamed:@"normal_delete"] forState:UIControlStateNormal];
        deleteBtn.frame = CGRectMake(kDeviceWidth-30.0f-10.0f,(50.0f-30.0f)/2.0f, 30, 30);
        [self addSubview:deleteBtn];
        
        UIView *lineView = [[UIView alloc] initWithFrame:CGRectMake(10.0f, 50.0f-0.5f, kDeviceWidth-10*2, 0.5f)];
        lineView.backgroundColor = kGreenColor;
        [self addSubview:lineView];
    }
    
    return self;
}
//
//- (void)deleteBtnAction:(UIButton*)sender
//{
//    
//}


- (void)showWithData:(NSDictionary*)data
{
    
}

@end
